package com.open.cloud.rbac.mapper.permission;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.open.cloud.rbac.entity.permission.CorePermission;
import com.open.cloud.rbac.object.permission.CorePermissionVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 权限表 Mapper 接口
 * </p>
 *
 * @author wangzengzhou01
 * @since 2024-12-23
 */
@Mapper
public interface CorePermissionMapper extends BaseMapper<CorePermission> {

    /**
     * 分页查询权限
     *
     * @param page
     * @param queryWrapper
     * @return
     */
    public IPage<CorePermissionVo> selectPermissionByPage(@Param("page") IPage<CorePermission> page,
                                                          @Param(Constants.WRAPPER) Wrapper<CorePermission> queryWrapper);

}
